FROM 10.7.198.110:5000/library/openjdk-font:8
RUN addgroup -S spring && adduser -S spring -G spring
USER spring:spring
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
COPY target/config/  /config/
COPY target/lib/ /lib/
ENTRYPOINT ["java","-Dloader.path=config,lib","-jar","app.jar","--spring.config.location=/config/"]
